#ifndef QTAV_VIDEOPLAYER_H
#define QTAV_VIDEOPLAYER_H

#include <QtAV/AVPlayer.h>
#include <QtAV/GraphicsItemRenderer.h>
#include <QWidget>

class VideoPlayer : public QWidget
{
    Q_OBJECT

public:
    VideoPlayer(QWidget *parent = 0);
    ~VideoPlayer();

    QSize sizeHint() const { return QSize(720, 640); }

private slots:
    void rotateVideo(int angle);

private:
    QtAV::AVPlayer mediaPlayer;
    QtAV::GraphicsItemRenderer *videoItem;
};

#endif //QTAV_VIDEOPLAYER_H
